public class chapter4_3_1{
    public static void main(String[] args){
        int[] a = {1,2,3,4,5,6};
        int[] b = new int[6];
        int i = 5;
        int j = 0;
        //将a数组的元素从后往前赋值给b数组
        while(i >= 0)
        {
            b[j] = a[i];
            i = i - 1;
            j = j + 1;
        }
        //依次输出b数组中的元素
        int k = 0;
        while(k < 6)
        {
            System.out.println(b[k]);
            k = k + 1;
        }
    }
}